﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using LiveCPEWinForm.Gestionnaire;

namespace LiveCPEWinForm.forms
{
    public partial class FmWall : Form
    {
        GestAPP gestAPP;

        public FmWall(GestAPP pGestAPP)
        {
            InitializeComponent();
            gestAPP = pGestAPP;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FmLogin fm = new FmLogin(gestAPP);
            fm.ShowDialog();
        }

        private void timer_Tick(object sender, EventArgs e)
        {
            if (gestAPP.user != null)
            {
                label1.Text = gestAPP.user.FirstName;
            }
        }
    }
}
